package com.chyb.cloud.exp;

import com.chyb.cloud.apis.PayFeignSentinelApiTwo;
import com.chyb.cloud.resp.ResultData;
import com.chyb.cloud.resp.ReturnCodeEnum;
import org.springframework.stereotype.Component;


/*注入容器*/
@Component
/*实现接口，并重写方法作为此即可的服务降级处理*/
public class PayTwoFeignSentinelApiFallBack implements PayFeignSentinelApiTwo {
    @Override
    public ResultData getPayByOrderNo(String orderNo) {
        return ResultData.fail(ReturnCodeEnum.RC201);
    }
}
